package com.example.fiction.base;

/**
 * 返回参数基类
 * author: 姚鸿杰
 * time: 2019/4/17 21:11
 **/
public class BaseResponse {
    public int code;    //返回数据请求码
    public String token;    //token
    public String sign; //AES密匙
    public String data; //json 数据
    public String msg;  //返回说明
    public String time; //返回数据的时间

    @Override
    public String toString() {
        return "BaseResponse{" +
                " code=" + code +
                ", token='" + token + '\'' +
                ", sign='" + sign + '\'' +
                ", data='" + data + '\'' +
                ", msg='" + msg + '\'' +
                ", time='" + time + '\'' +
                '}';
    }

    public boolean isSuccess() {
        return code == 200;
    }
}
